package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_battle", desc = "海神岛-圣柱试炼战斗日志", autoSave = true, dataUpload = true, eventName = "seagod_boss", uploadCk = true, isCross = true)
public class LogCrossHsIslandBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "guild_id")
    private String unionId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "目标id", dataAttribute = "seagod_attackid")
    private long targetId;

    @FieldTypeAnnotation(desc = "造成的伤害", dataAttribute = "seagod_hurt")
    private long offsetDamage;

    @FieldTypeAnnotation(desc = "目标剩余值", dataAttribute = "seagod_surplus")
    private long targetLeftHp;

    @FieldTypeAnnotation(desc = "是否击杀", dataAttribute = "seagod_iskill")
    private boolean isWin;

    @FieldTypeAnnotation(desc = "我方扣除精力值", dataAttribute = "seagod_useenergy")
    private long costPvpEnergy;

    @FieldTypeAnnotation(desc = "我方剩余精力值", dataAttribute = "seagod_nowenergy")
    private long pvpEnergy;


    public LogCrossHsIslandBattle(int activityId, int groupId, String unionId, long userId, long targetId, long offsetDamage, long targetLeftHp, boolean isWin, long costPvpEnergy, long pvpEnergy) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
        this.targetId = targetId;
        this.offsetDamage = offsetDamage;
        this.targetLeftHp = targetLeftHp;
        this.isWin = isWin;
        this.costPvpEnergy = costPvpEnergy;
        this.pvpEnergy = pvpEnergy;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
